package CentralServ;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Date;
import java.util.List;

import CentralServ.Carro;
import CentralServ.Cliente;

public interface ICentralServ extends Remote {

	public void cadastrarCarro(Carro carro) throws RemoteException;
	public void removerCarro(String placa) throws RemoteException;
	public void cadastrarCliente(Cliente cliente) throws RemoteException;
	public void removerCliente(String cpf) throws RemoteException;
	public List<Carro> selecionarCarrosDisponiveis(Date dataInicio) throws RemoteException;
	public void alugarCarro(Date dataInicio, Date dataFim, Carro carro, Cliente cliente, double valor) throws RemoteException;
	public Carro getCarroPelaPlaca(String placa) throws RemoteException;
	public Cliente getClientePeloCpf(String cpf) throws RemoteException;
	public List<Cliente> selecionaClientes() throws RemoteException;
	public List<Carro> selecionaCarros() throws RemoteException;

}
